Optimal. Leaf size=83 \[ -\frac {\cos (e+f x) \left (a-b \cos ^2(e+f x)+b\right )^p \left (1-\frac {b \cos ^2(e+f x)}{a+b}\right )^{-p} F_1\left (\frac {1}{2};1,-p;\frac {3}{2};\cos ^2(e+f x),\frac {b \cos ^2(e+f x)}{a+b}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3186, 430, 429} \[ -\frac {\cos (e+f x) \left (a-b \cos ^2(e+f x)+b\right )^p \left (1-\frac {b \cos ^2(e+f x)}{a+b}\right )^{-p} F_1\left (\frac {1}{2};1,-p;\frac {3}{2};\cos ^2(e+f x),\frac {b \cos ^2(e+f x)}{a+b}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 429
Rule 430
Rule 3186
Rubi steps
\begin {align*} \int \csc (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (a+b-b x^2\right )^p}{1-x^2} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\left (\left (a+b-b \cos ^2(e+f x)\right )^p \left (1-\frac {b \cos ^2(e+f x)}{a+b}\right )^{-p}\right ) \operatorname {Subst}\left (\int \frac {\left (1-\frac {b x^2}{a+b}\right )^p}{1-x^2} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {F_1\left (\frac {1}{2};1,-p;\frac {3}{2};\cos ^2(e+f x),\frac {b \cos ^2(e+f x)}{a+b}\right ) \cos (e+f x) \left (a+b-b \cos ^2(e+f x)\right )^p \left (1-\frac {b \cos ^2(e+f x)}{a+b}\right )^{-p}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 4.84, size = 0, normalized size = 0.00 \[ \int \csc (e+f x) \left (a+b \sin ^2(e+f x)\right )^p \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.46, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (-b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \csc \left (f x + e\right ), x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \csc \left (f x + e\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 2.43, size = 0, normalized size = 0.00 \[ \int \csc \left (f x +e \right ) \left (a +b \left (\sin ^{2}\left (f x +e \right )\right )\right )^{p}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (f x + e\right )^{2} + a\right )}^{p} \csc \left (f x + e\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (b\,{\sin \left (e+f\,x\right )}^2+a\right )}^p}{\sin \left (e+f\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________